﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cole.Entities;
using Cole.Repository;

namespace Cole.Service
{
    public class AlumnoBl:IAlumnoBl
    {
        private IAlumnoRepository alumnoRepository;
        public AlumnoBl()
        {
            if (alumnoRepository == null)
            {
                alumnoRepository = new AlumnoRepository();
            }
        }

        public List<Alumno> GetAlumnoByApellidosNombresDNI(string criterio)
        {
            return alumnoRepository.GetAlumnoByApellidosNombresDNI(criterio);
        }


        public void ModificarAlumno(Alumno alu)
        {
            alumnoRepository.ModificarAlumno(alu);
        }


        public void EliminarAlumno(int id)
        {
            alumnoRepository.EliminarAlumno(id);
        }
    }
}
